package xyz.archknight.app.loginput.dictionary.gen.ui

import javax.swing.JTabbedPane
import javax.swing.border.EmptyBorder

/**
 * 主界面的中央操作区域
 *
 * @author midnite
 * create at 2020-06-17 8:49 上午
 */
class MainPane() : JTabbedPane() {
    private val mainStorage = MainStoragePane()
    private val cacheStorage = CacheStoragePane()

    init {
        createUI()
    }

    private fun createUI() {
        border = EmptyBorder(4, 4, 4, 4)

        addTab("主词库", mainStorage)
        addTab("缓存区", cacheStorage)
    }
}